﻿using GraphQL;
using GraphQL.Resolvers;
using GraphQL.Server.Transports.Subscriptions.Abstractions;
using GraphQL.Subscription;
using GraphQL.Types;
using Microsoft.Extensions.Options;
using NetCore_GraphQL.Entity;
using NetCore_GraphQL.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace NetCore_GraphQL.GraphType.Query
{
    public class SysInfoQuery : ObjectGraphType
    {
        public SysInfoQuery()
        {
            Name = "sysInfoQuery";
            Description = "系统信息查询";
            Field<SysInfoType>("getSysInfo", resolve: x => new SysInfo { SysId = 1, SysName = "Windows", HostName = "火麒麟" });
        }
    }
}
